@import "../_base/_function";
.ui-upload {
  .ui-upload-box {
    padding: 12px;
    border: 1px dashed #d2d2d2;
    line-height: 22px;
    text-align: center;
    background: #f5f5f5;
    margin: 0;
  }
  .pre-upload-tips {
    @include inline-block();
    text-align: left;
    margin: 0;
  }
  .upload-items {
    display: none;
  }
  .item {
    @include inline-block();
    width: 180px;
    padding-bottom: 10px;
    margin-right: 10px;
    .ico-upload{
      vertical-align: top;
    }
    .info{
      @include inline-block();
      width: 72%;
      width: calc(100% - 40px) !important;
      font-size: 12px;
    }
    h6{
      margin:5px 0 0;
      color: #666;
      line-height: 20px;
    }
    .size{
      color: #999;
      float: left;
    }
    .del{
      color: $error;
      text-decoration: none;
      float: right;
    }
    .down{
      color: $primary-color;
      text-decoration: none;
      float: right;
    }
    .progress{
      background: #e3e9ec;
      width: 100%;
      height: 5px;
      line-height: 0;
      margin: 5px 0 0;
      span{
        @include inline-block();
        height: 5px;
        background: $blue;
      }
    }
  }
  &.ui-error {
    .ui-upload-box {
      background: #f8dbe0;
      border-color: $error;
    }

  }
  &.ui-loading,&.ui-loaded {
    .ui-upload-box {
      display: none;
    }
    .upload-items {
      display: block;
    }
  }
  &.ui-loaded{
    label{
      color: #999;
    }
    .progress{
      display: none;
    }
  }


}

.ui-mobile {
  .ui-upload-box {
    width: 60px;
    height: 60px;
    //border-style: solid;
    margin-left: 10px;
    background: url(./assets/images/spr-l-0626.png) -315px 0 no-repeat;
  }
}